package org.ourgrid.acceptance.discoveryservice;

import org.junit.Test;
import org.ourgrid.acceptance.util.discoveryservice.Req_502_Util;
import org.ourgrid.acceptance.util.discoveryservice.Req_504_Util;
import org.ourgrid.discoveryservice.DiscoveryServiceComponent;
import org.ourgrid.reqtrace.ReqTest;


public class Req_504_Test extends DiscoveryServiceAcceptanceTestCase {

	Req_502_Util req_502_Util = new Req_502_Util(getComponentContext());
	Req_504_Util req_504_Util = new Req_504_Util(getComponentContext());
	
	/**
	 * Create a DS;
     * Start a DS with the correct public key;
     * Call the getCompleteStatus message;
     * Verify if the conectedPeers list is empty;
	 * @throws Exception
	 */
	@ReqTest(test = "AT-504.1", reqs = "")
	@Test public void test_AT_504_1_DSStatus() throws Exception {
		// Start the Discovery Service
		DiscoveryServiceComponent component = req_502_Util.startDiscoveryService();
		
		// Call the getCompleteStatus message
		req_504_Util.getEmptyCompleteStatus(component);
	}
}
